<template>
	<view>
		<view class="item">
			<view class="header">
				<image :src="item.image" mode="aspectFill"></image>
				
				<view class="address" v-if="item.active_address">{{ item.active_address }}</view>
				<view class="tags flex_center">
					<text>{{ item.tags.replaceAll(',','/') }}</text>
				</view>
			</view>
		
			<view class="name hidden_2">
				{{ item.title || '' }}
			</view>
		
			<view class="user flex_r_between">
				<view class="left flex_center">
					<image :src="item.avatar" mode="aspectFill"></image>
					<text>{{ item.nickname }}</text>
				</view>
				<view class="right flex_r_around" v-if="Number(item.active_price) > 0">
					￥{{ item.active_price }}
				</view>
				<view class="right flex_r_around" v-else>
					免费
				</view>
			</view>
		
		</view>
	</view>
</template>

<script>
	export default {
		name: 'active',
		props: {
			item: {
				type: Object,
				default: () => {},
			},
			index: {
				type: Number,
				default: 0,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	.item {
		height: 660rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		overflow: hidden;
		margin: 0 8rpx 16rpx;
		width: 340rpx;
	
		.header {
			width: 340rpx;
			height: 460rpx;
			overflow: hidden;
			position: relative;
	
			image {
				width: 340rpx;
				height: 460rpx;
			}
	
			.address {
				background: #00D7A7;
				border-radius: 8rpx;
				padding: 4rpx 12rpx;
				font-size: 24rpx;
				color: #FFFFFF;
				line-height: 32rpx;
				position: absolute;
				top: 20rpx;
				left: 24rpx;
			}
	
	
			.tags {
				width: 340rpx;
				padding: 12rpx 16rpx;
				position: absolute;
				bottom: 0;
				left: 0;
				background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
	
				text {
					flex: 1;
					font-weight: 500;
					font-size: 24rpx;
					color: #FFFFFF;
				}
	
				image {
					width: 40rpx;
					height: 40rpx;
				}
			}
	
		}
	
		.name {
			margin: 24rpx 16rpx 12rpx;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			line-height: 40rpx;
		}
	
		.user {
			margin: 0 16rpx;
	
			.left {
				image {
					width: 48rpx;
					height: 48rpx;
					border-radius: 24rpx;
					margin-right: 12rpx;
				}
	
				text {
					font-size: 24rpx;
					color: #666666;
				}
	
			}
	
			.right {
				font-weight: 600;
				font-size: 32rpx;
				color: #FD2A53;
			}
		}
	
	}
</style>
